package com.ziqikeji.thread;

/**
 * Created by Admin on 2018/8/8.
 */
public class MyThread extends Thread {

    private int word;

    public MyThread(int word) {
        this.word = word;
        this.word++;
    }

    @Override
    public void run() {
        super.run();
        System.out.println(word);
    }
}
